package source.Objetos 
{
    import net.flashpunk.Entity;
    import net.flashpunk.graphics.Image;
    import source.Assets;
	
	public class Puas extends Entity
	{	
		public function Puas(x:int, y:int, orientacion:String) 
		{
			super(x, y);
			
			//configuramos el gráfico, la máscara y el tipo:
			switch (orientacion) {
				case "n":
					graphic = new Image(Assets.OBJ_PUAS_N);
					//mask = new Pixelmask(Assets.OBJ_PUAS_N);
                    setHitbox(25, 8, 0, 0);
					type = "puas_n";
					break;
				case "e":
					graphic = new Image(Assets.OBJ_PUAS_E);
					//mask = new Pixelmask(Assets.OBJ_PUAS_E);
                    setHitbox(8, 25, -17, 0);
					type = "puas_e";
					break;
				case "s":
					graphic = new Image(Assets.OBJ_PUAS_S);
					//mask = new Pixelmask(Assets.OBJ_PUAS_S);
                    setHitbox(25, 8, 0, -17);
					type = "puas_s";
					break;
				case "o":
					graphic = new Image(Assets.OBJ_PUAS_O);
					//mask = new Pixelmask(Assets.OBJ_PUAS_O);
                    setHitbox(8, 25, 0, 0);
					type = "puas_o";
					break;
			}
		}
	}
}